<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link rel="stylesheet" href="../style.css" type="text/css" media="all" />
<body>
<h1>Regedit</h1>
<div class="class_description">Предоставляет централизованный доступ к всем настройкам</div>
<h2>Методы</h2><ul><li><a href="#get">get</a></li><li><a href="#getInstance">getInstance</a></li><li><a href="#set">set</a></li></ul><a name="get"></a>
<h3>get</h3>
<div class="block description">
<h4>Описание</h4>
<div class="text method_description">
<div class="prototype"><span class="return">string</span> <span class="name">get</span> (<span class="type">string</span> <span class="varname">$key</span>)</div><p>Возвращает значение переменной реестра</p>
</div>
</div><div class="block parametrs">
<h4>Параметры</h4>
<div class="text parametrs"><dl class="var_description">
	<dt>key</dt>
	<dd>ключ вида //родитель1/родитель2/переменная</dd>
</dl>
</div>
</div><a name="getInstance"></a>
<h3>getInstance</h3>
<div class="block description">
<h4>Описание</h4>
<div class="text method_description">
<div class="prototype"><span class="return">Regedit</span> <span class="name">getInstance</span> ()</div><p>Возвращает объект класса Regedit</p>
</div>
</div><a name="set"></a>
<h3>set</h3>
<div class="block description">
<h4>Описание</h4>
<div class="text method_description">
<div class="prototype"><span class="return">void</span> <span class="name">set</span> (<span class="type">string</span> <span class="varname">$key</span>, <span class="type">mixed</span> <span class="varname">$value</span>)</div><p>Записывает значение переменной реестра</p>
</div>
</div><div class="block parametrs">
<h4>Параметры</h4>
<div class="text parametrs"><dl class="var_description">
	<dt>key</dt>
	<dd>ключ вида //родитель1/родитель2/переменная</dd>
</dl><dl class="var_description">
	<dt>value</dt>
	<dd>значение</dd>
</dl>
</div>
</div><h2>Примеры</h2><div class="sample">
<p>Пример №1</p>
<div class="sample_content"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$regedit&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">Regedit</span><span style="color: #007700">::</span><span style="color: #0000BB">getInstance&nbsp;</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">$cacheLifetime&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$regedit</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"//settings/cache/default_lifetime"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$regedit</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">set&nbsp;</span><span style="color: #007700">(</span><span style="color: #DD0000">"//settings/cache/default_lifetime"</span><span style="color: #007700">,&nbsp;++</span><span style="color: #0000BB">$cacheLifetime</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
</div></body>
</html>